'Declaration
Public Function New( _ ByVal fromStreamFunction As Func(Of Stream,ValueResult(Of TValue)) _ )
'Usage
Dim fromStreamFunction As Func(Of Stream,ValueResult(Of TValue)) Dim instance As New StreamLoader(Of TValue)(fromStreamFunction)
public StreamLoader<TValue>( Func<Stream,ValueResult<TValue>> fromStreamFunction )
public: StreamLoader<TValue>( Func<Stream^,ValueResult<TValue^>^>^ fromStreamFunction )
Parameters
- fromStreamFunction
- The function that reads the value from the stream.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).